public class Knight extends ChessPiece {

	final static private int KNIGHT_VALUE = 3;

	public Knight(boolean team, BoardLocation curLoc) {
		super(team, KNIGHT_VALUE, curLoc);
	}

	// A valid Knight move is a vector of length 5
	public boolean isValidMove(BoardLocation dest) {
		return dest.isOnBoard()
				&& (Math.pow(dest.getRow() - curLoc.getRow(), 2)
						+ Math.pow(dest.getCol() - curLoc.getCol(), 2) == 5);
	}

	public String toString() {
		return "H";
	}
}
